]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appSwitcher: Fix logic error in AltTabPopup._allocate
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 4 Mar 2011 16:07:45 +0000 (17:07 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 4 Mar 2011 16:07:45 +0000 (17:07 +0100)
js/ui/altTab.js

index d0b50fc398f2186f3754a088ddc277c7585ba2fe..44fd39d1d74e8c7aabd8f8f7d3ad4d7bc85d95b7 100644 (file)
@@ -87,7 +87,7 @@ AltTabPopup.prototype = {
         let [childMinHeight, childNaturalHeight] = this._appSwitcher.actor.get_preferred_height(primary.width - hPadding);
         let [childMinWidth, childNaturalWidth] = this._appSwitcher.actor.get_preferred_width(childNaturalHeight);
         childBox.x1 = Math.max(primary.x + leftPadding, primary.x + Math.floor((primary.width - childNaturalWidth) / 2));
-        childBox.x2 = Math.min(childBox.x1 + primary.width - hPadding, childBox.x1 + childNaturalWidth);
+        childBox.x2 = Math.min(primary.width - hPadding, childBox.x1 + childNaturalWidth);
         childBox.y1 = primary.y + Math.floor((primary.height - childNaturalHeight) / 2);
         childBox.y2 = childBox.y1 + childNaturalHeight;
         this._appSwitcher.actor.allocate(childBox, flags);